Skip to content

Haskell module to execute single or multiple shell commands

License

Notifications You must be signed in to change notification settings

GianlucaGuarini/executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

executor

Haskell module to execute single or multiple shell commands

Build Status MIT License

API

exec

Execute a single shell command returning its output

import Executor (exec)

main = do
  -- execute a simple `ls` in the current folder
  res <- exec "echo hi"
  -- hi\n

execSequenceSync

Execute a list of shell commands in sequence synchronously returning their results in a list

import Executor (execSequenceSync)

main = do
  -- execute synchronously the following commands
  res <- execSequenceSync [
      "echo hi",
      "sleep 1",
      "echo goodbye"
    ]
  -- ["hi\n", "", "goodbye\n"]

About

Haskell module to execute single or multiple shell commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published